# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class RestoreTask(object):

    def __init__(self, restoreTaskId=None, restoreType=None, dataTimestamp=None, restoreStartTime=None, restoreEndTime=None, sizeByte=None, status=None, errorMessages=None, hostName=None, ip=None, port=None):
        """
        :param restoreTaskId: (Optional) 恢复任务ID
        :param restoreType: (Optional) 恢复类型,逻辑恢复 LogicalRestore,  物理恢复 PhysicalRestore, 时间点恢复 TimepointRestore
        :param dataTimestamp: (Optional) 恢复后的数据时间点, UTC时间格式：YYYY-MM-DDTHH:mm:ssZ
        :param restoreStartTime: (Optional) 恢复开始时间，UTC时间格式：YYYY-MM-DDTHH:mm:ssZ
        :param restoreEndTime: (Optional) 恢复结束时间，UTC时间格式：YYYY-MM-DDTHH:mm:ssZ
        :param sizeByte: (Optional) 备份大小，单位：Byte
        :param status: (Optional) 恢复状态 成功-COMPLETED  运行中-RESTORING  失败-ERROR
        :param errorMessages: (Optional) 错误信息，仅状态为 ERROR 时返回；其他状态返回空字符串
        :param hostName: (Optional) 要恢复到的主机的名称
        :param ip: (Optional) 要恢复到的主机的地址，可以为IP或者域名
        :param port: (Optional) 数据库的端口
        """

        self.restoreTaskId = restoreTaskId
        self.restoreType = restoreType
        self.dataTimestamp = dataTimestamp
        self.restoreStartTime = restoreStartTime
        self.restoreEndTime = restoreEndTime
        self.sizeByte = sizeByte
        self.status = status
        self.errorMessages = errorMessages
        self.hostName = hostName
        self.ip = ip
        self.port = port
